package com.ss.android.pay;

import android.app.Activity;
import android.os.Message;

import com.bytedance.common.utility.Logger;
import com.bytedance.common.utility.b.ThreadPlus;

final class d extends ThreadPlus {
    private final b a;

    d(b arg1) {
        this.a = arg1;

    }

    public final void run() {
        if(this.a.b.get() != null) {
            try {
                String v0_1 = com.bytedance.article.b.a.a.a().pay((Activity) this.a.b.get(), String.format("%s&sign=\"%s\"&sign_type=\"%s\"", this.a.c.g, this.a.c.a, this.a.c.h));
                if(Logger.debug()) {
                    Logger.d("AliPay", "result = " + v0_1);
                }

                Message.obtain(this.a.a, 0, v0_1).sendToTarget();
            }
            catch(Exception v0) {
                v0.printStackTrace();
                Message.obtain(this.a.a, 0, "").sendToTarget();
            }
        }
    }
}

